#ifndef __HDMI_H__
#define __HDMI_H__

#include "stm32f10x_gpio.h"
#include "stm32f10x_rcc.h"

#include "ccw_i2c.h"
#include "sys.h"

void ccw_hdmi_init(void);
void ccw_hdmi_deinit(void);

char scdc_test(void);



void ccw_hdmi_connect(uint8_t enable);
void ccw_hdmi_read_edid();


enum HDMI_STAT{
    HDMI_SINK_5V_STAT = 0x01,
    HDMI_SINK_HPD_STAT = 0x02
};

#define ENABLE_HDMI_SINK_STAT(x) (hdmi_sink_status|=(x))
#define DISABLE_HDMI_SINK_STAT(x) (hdmi_sink_status&=(~x))
#define IS_ENABLE_HDMI_SINK_STAT(x) (hdmi_sink_status&(x))
#endif //__MISC_H__